package com.xutong.myfunction.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import com.xutong.myfunction.R;
import com.xutong.myfunction.custom.SuspensionButton;

public class SuspensionActivity extends AppCompatActivity {
    SuspensionButton button;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_suspension);

        button = (SuspensionButton) findViewById(R.id.spBtn);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(SuspensionActivity.this,"选中",Toast.LENGTH_SHORT).show();
            }
        });
    }
}
